﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace NUnitTest.UnitTest.Targets
{
    [TestFixture]
    public class TestCorrect
    {
        [Test]
        public void AssertConditionCorrectTest()
        {
            Assert.IsTrue(true);
            Assert.IsFalse(false);
        }
        
        [Test]
        public void AssertNullCorrectTest()
        {
            Assert.IsNull(null);
            Assert.IsNotNull(new Object());
        }

        [Test]
        public void AssertAreEqualCorrect()
        {
            Assert.AreEqual(new string[]{"1", "2"}, new string[]{"1", "2"});
            Assert.AreEqual(-1, -1);
            Assert.AreEqual(0, 0);
            Assert.AreEqual("Testing", "Testing");
            Assert.AreEqual(1.213, 1.213);
            Object o = new Object();
            Assert.AreEqual(o,o);
        }

        [Test]
        public void AssertAreSameCorrect()
        {
            Object o = new Object();
            Assert.AreSame(o, o);
            //Assert.ReferenceEquals(o, o);
        }
    }
}
